﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RegistCard.aspx.cs" Inherits="WISD.CarFriend.Web.OA.RegistCard" %>

<%@ Register Src="~/UserControls/Top.ascx" TagName="top" TagPrefix="CFControl" %>
<%@ Register Src="~/UserControls/Footer.ascx" TagName="footer" TagPrefix="CFControl" %>
<%@ Register Src="~/UserControls/Right.ascx" TagName="right" TagPrefix="CFControl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>车友俱乐部 </title>
    <meta name="keywords" content="车友俱乐部,cyaa" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link type="text/css" rel="stylesheet" href="../Content/CSS/ClientCSS/style.css" />
    <link href="Content/CSS/ClientCSS/Style.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/CommonScripts/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="Scripts/ClientScripts/jsAddress.js" type="text/javascript"></script>
    <script src="Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../Scripts/CommonScripts/MessageBox.js" type="text/javascript"></script>
    <script src="../Scripts/CommonScripts/jquery.validate.min.js" type="text/javascript"></script>
    <script src="../Scripts/CommonScripts/cursorfocus.js" type="text/javascript"></script>
    <script src="../Scripts/CommonScripts/messages_cn.js" type="text/javascript"></script>
    <script src="../Scripts/CommonScripts/jquery.form.js" type="text/javascript"></script>
    <script type="text/javascript">

        $(function () {
            //表单验证JS
            $("#form1").validate({
                //出错时添加的标签
                errorElement: "span",
                success: function (label) {
                    //正确时的样式
                    label.text(" ").addClass("success");
                }

            });

        });

        jQuery(document).ready(function () {
            jQuery.validator.addMethod("txtWebPwd", function (value, element) {
                var tel = /^[A-Za-z0-9_-]+$/;
                return tel.test(value) || this.optional(element);
            }, "只能为字母数字下划线");
        });


        //绑定时间选择
        function InitDateStart(value) {
            //$(timeStart).datepicker("destory");
            var id = "#" + $(value).attr("id");
            $(id).datepicker(
            {
                showWeek: true,
                altFormat: "yyyy-mm-dd",
                onSelect: function (selectedDate) { //不知道为什么不加这句，会出莫名其妙的错误
                    $(id).trigger("change");
                }
            });
            $(id).datepicker("show");
        }
    </script>
    <style type="text/css">
        .style1
        {
            height: 33px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <!--Head.Start-->
    <CFControl:top ID="Header" runat="server" />
    <!--Head.End-->
    <!--content.Start-->
    <div class="main">
        <div class="line10">
        </div>
        <!--left.start-->
        <div class="nleft">
            <div class="prplace">
                <a href="../../Index.aspx">主页</a> > 会员注册>
            </div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                <tr>
                    <th colspan="4" align="left">
                        会员注册
                    </th>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        会员卡号：<span style="color: Red">*</span>
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtMemberCardID" runat="server" CssClass="input w380  required  numberAnd"
                            MaxLength="16" minlength="4" tip="memberCardID"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        会员编号：<span style="color: Red">*</span>
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtMemberID" runat="server" CssClass="input w380  required  numberAnd"
                            MaxLength="16" minlength="4" Enabled="False"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        姓名：<span style="color: Red">*</span>
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtName" runat="server" CssClass="input w380  required  numberAnd"
                            MaxLength="16" minlength="4" Enabled="False"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        移动电话：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtMobileTel" runat="server" CssClass="input w380  required  numberAnd"
                            MaxLength="16" minlength="4" Enabled="False"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        车牌号码：<span style="color: Red">*</span>
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtVehicleNo" runat="server" CssClass="input w380  required  numberAnd"
                            MaxLength="16" minlength="4" Enabled="False"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        车 型：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtVehicleStyle" runat="server" CssClass="input w380  required  numberAnd"
                            MaxLength="16" minlength="4" Enabled="False"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        会员卡类型：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:DropDownList ID="SelMemberLevel" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        入会日期：<span style="color: Red">*</span>
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtAdmissionDate" runat="server" onclick="WdatePicker()" CssClass="input w380  required"
                            tip="admissionDate"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        到期日期：<span style="color: Red">*</span>
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtExpirationDate" runat="server" onclick="WdatePicker()" CssClass="input w380  required"
                            tip="expirationDate"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        会员卡密码：<span style="color: Red">*</span>
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtPwd" runat="server" CssClass="input w380  txtWebPwd" MaxLength="50"
                            tip="pwd" minlength="1" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        确认密码：<span style="color: Red">*</span>
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtPwdCheck" runat="server" CssClass="input w380  txtWebPwd" MaxLength="50"
                            tip="pwdCheck" minlength="1" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        剩余金额：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtResidualAmount" runat="server" CssClass="input w380 " MaxLength="9"
                            minlength="0" tip="residualAmount" Enabled="false" Text="0"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        会员卡状态：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:DropDownList ID="SelState" runat="server">
                            <asp:ListItem Value="4">未审核</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        备注：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtMemo" runat="server" CssClass="input w380 " MaxLength="20" minlength="1"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <div style="margin-top: 10px; text-align: center;">
                <asp:Button ID="btnSave" runat="server" Text="确认保存" CssClass="submit" OnClick="btnSave_Click" />&nbsp;
                <input name="重置" type="reset" class="submit" value="重置" />
            </div>
        </div>
        <!--left.end-->
        <!--right.start-->
        <CFControl:right ID="Right" runat="server" />
        <!--right.end-->
    </div>
    <!--content.End-->
    <!--footer Start-->
    <CFControl:footer ID="Footer" runat="server" />
    <!--footer End-->
    </form>
</body>
</html>
